package 成绩判断;

import java.util.Scanner;

/**
 * @author Administrator
 * @ClassName Grade
 * @TIME 星期五 2020/12/25
 */
public class Grade extends Thread {

    @Override
    public void run() {
        long startTime = System.currentTimeMillis();
        Scanner sc = new Scanner(System.in);
        System.out.println("输入查询的成绩");
        int scInt = sc.nextInt();

        int a = 90;
        int b = 60;
        int max = 100;
        if (scInt >= a && scInt <= max) {
            System.out.println("A");
        } else if (scInt < a && scInt >= b) {
            System.out.println("B");
        } else if (scInt < b) {
            System.out.println("C");
        } else {
            System.out.println("输入正确的正整数");
        }
        long endTime = System.currentTimeMillis();
        System.out.println((endTime - startTime) + "MS");
    }

    public static void main(String[] args) {
        Grade grade = new Grade();
        grade.start();
    }

}
